package com.goktech.olala.server.pojo.customer;

import java.util.Date;

public class UserLoginLog {
    private Long loginId;

    private String customerId;

    private Date loginTime;

    private String loginIp;

    private Integer loginType;

    public UserLoginLog() {
    }

    public UserLoginLog(Long loginId, String customerId, Date loginTime, String loginIp, Integer loginType) {
        this.loginId = loginId;
        this.customerId = customerId;
        this.loginTime = loginTime;
        this.loginIp = loginIp;
        this.loginType = loginType;
    }

    @Override
    public String toString() {
        return "UserLoginLog{" +
                "loginId=" + loginId +
                ", customerId='" + customerId + '\'' +
                ", loginTime=" + loginTime +
                ", loginIp='" + loginIp + '\'' +
                ", loginType=" + loginType +
                '}';
    }

    public Long getLoginId() {
        return loginId;
    }

    public void setLoginId(Long loginId) {
        this.loginId = loginId;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId == null ? null : customerId.trim();
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp == null ? null : loginIp.trim();
    }

    public Integer getLoginType() {
        return loginType;
    }

    public void setLoginType(Integer loginType) {
        this.loginType = loginType;
    }
}